/*
 ***************************************************************************
 * MediaTeK Inc.
 * 4F, No. 2 Technology	5th	Rd.
 * Science-based Industrial	Park
 * Hsin-chu, Taiwan, R.O.C.
 *
 * (c) Copyright 2002-2012, MTK.
 *
 * All rights reserved.	MediaTeK's source	code is	an unpublished work	and	the
 * use of a	copyright notice does not imply	otherwise. This	source code
 * contains	confidential trade secret material of MediaTeK Tech. Any attemp
 * or participation	in deciphering,	decoding, reverse engineering or in	any
 * way altering	the	source code	is stricitly prohibited, unless	the	prior
 * written consent of MediaTeK, Inc. is obtained.
 ***************************************************************************

	Module Name:
	omci_dbg_func.h

	Abstract:

	Revision History:
	Who			When			What
	--------	----------		----------------------------------------------
	Name		Date			Modification logs
	Xi.Wang		2018/9/5	Create
*/

#ifndef OMCI_DBG_SRV_H_
#define OMCI_DBG_SRV_H_

#include "omci_external_msg.h"
#define GPON_OMCI_DBG_PORT   8809
#define GPON_OMCI_DBG_MAX_BUF  2000

int tcp_server_setup(uint16_t port);
int tcp_server_exit();
int accept_client();

int gponOmciPktRxDbgQ(omciGenericPayload_t *omciPkt);
int gponOmciPktTxDbgQ(int len, char *pkts);
void *gponOmciDbgThread(void *data);
int omci_parsing_dbgcmd(int argc,char **argv);
void *omciCmdMsgThread(void *data);

extern int omciDestroyApp(void);

#endif
